<template>
  <div class="nav">
    <Menu mode="horizontal" theme="dark" active-name="1">
      <div class="layout-nav">
        <MenuItem name="1">
        <Icon type="ios-navigate"></Icon>
        Item 1
        </MenuItem>
        <MenuItem name="2">
        <Icon type="ios-keypad"></Icon>
        Item 2
        </MenuItem>
        <MenuItem name="3">
        <Icon type="ios-analytics"></Icon>
        Item 3
        </MenuItem>
        <MenuItem name="4">
        <Icon type="ios-paper"></Icon>
        Item 4
        </MenuItem>
      </div>
    </Menu>
  </div>
</template>

<script>
  import {mapState} from 'vuex';
  export default {
    name: "Nav",

    computed:{
        ...mapState({
            headerbg: state =>state.header.headerbg
        })
    },

    data() {
      return {

      }
    },

    methods: {
      getnav() {

      }
    },

    mounted() {
      this.getnav();
    }

  };
</script>

<style scoped lang="less">
  .layout {
    border: 1px solid #d7dde4;
    background: #f5f7f9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
  }

  .layout-logo {
    width: 100px;
    height: 30px;
    background: #5b6270;
    border-radius: 3px;
    float: left;
    position: relative;
    top: 15px;
    left: 20px;
  }

  .layout-nav {
    width: 420px;
    margin: 0 auto;
    margin-right: 20px;
  }

  .layout-footer-center {
    text-align: center;
  }
</style>